//
//  FZ_ReMen_CollectionViewCell.m
//  ProjectOfBStage
//
//  Created by dllo on 15/11/14.
//  Copyright © 2015年 cuixin. All rights reserved.
//

#import "FZ_ReMen_CollectionViewCell.h"
#import <UIImageView+WebCache.h>
#import "BaseHeader.h"

@interface FZ_ReMen_CollectionViewCell ()
@property (retain, nonatomic) IBOutlet UIImageView *imageHead;
@property (retain, nonatomic) IBOutlet UILabel *labelTitle;
@property (retain, nonatomic) IBOutlet UILabel *labelName;
@property (retain, nonatomic) IBOutlet UILabel *labelPinDao;
@end
@implementation FZ_ReMen_CollectionViewCell

- (void)dealloc {
    [_labelTitle release];
    [_imageHead release];
    [_labelName release];
    [_labelPinDao release];
    [super dealloc];
}

-(void)setModel:(FZ_RootModelR *)model{
    if (_model != model) {
        [_model release];
        _model = [model retain];
    }
    [_imageHead sd_setImageWithURL:[NSURL URLWithString:model.pic] placeholderImage:WAIT_PICTURE];
    self.labelTitle.text = model.name;
    self.labelName.text = [model.channel objectForKey:@"name"];
}

- (void)awakeFromNib {
    
}

@end
